using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using BUS;

namespace Presentation
{
    public partial class BM63GUI : Form
    {
        public BM63GUI()
        {
            InitializeComponent();
        }

        private void tbThang_Click(object sender, EventArgs e)
        {
            DataTable dt = XeBUS.TimTinhTrangGiaoHangTheoThang(int.Parse(tbThang.Text.ToString()));
            int i = 0;
            foreach (DataRow dr in dt.Rows)
            {
                dataGridView1.Rows.Add((++i).ToString(),dr[0].ToString(),dr[1].ToString(),dr[2].ToString(),dr[3].ToString());
            }
                
        }
    }
}